app.controller("sellerController",function ($scope,$controller,sellerService) {
    //继承baseController
    $controller("baseController",{$scope:$scope});
    $scope.entity = {};
    $scope.isAgree = false ;
    $scope.add = function () {
        if ($scope.isAgree == true){
            sellerService.save($scope.entity).then(function (result) {
                if (result.data.success){
                    location.href="/shoplogin.html";
                }else{
                    alert(result.data.message);
                }
            })
        }else{
            alert("请先阅读相关规则");
        }
    }

})